package com.wyvoid.forum.dao.hibernate;

import java.util.List;

import com.wyvoid.forum.dao.IPollResultDAO;
import com.wyvoid.forum.domain.PollResult;
import com.wyvoid.core.persistent.hibernate.HibernateDAO;

/**
 * 投票信息Hibernate数据处理实现 
 * 
 * @author wyvoid
 * @link www.wyvoid.com
 * 
 * @version $Revision: 1.2 $ $Date: 2006/07/28 17:04:32 $
 */
public class PollResultDAO extends HibernateDAO<PollResult> implements IPollResultDAO {

	/**
	 * 根据投票编号列表投票选项
	 * @param pollId 投票编号
	 * @return List 投票选项列表
	 */	
	public List findPollResults(int pollId)  {
        return doQueryList("from PollResult as pr where pr.pollId=?",true,pollId);
	}
}
